package abstractdemo02;

public class Test {
    public static void main(String[] args) {
        Frog f = new Frog("zhangsan",18);
        System.out.println(f.getAge()+" "+f.getName());
        f.eat();
        System.out.println("----------");
        Dog d = new Dog("lisi",19);
        System.out.println(d.getAge()+" "+d.getName());
        d.eat();
        System.out.println("----------");
        Slepp s = new Slepp("wangwu",20);
        System.out.println(s.getAge()+" "+s.getName());
        s.eat();
    }
}
